home *** CD-ROM | disk | FTP | other *** search
/ The Games Machine 76 / XENIATGM66.iso / Indiana Jones / Indiana Jones.exe / RESOURCE / PREVIEW.GOB / cog_nub_slashtap.cog < prev    next >
Text File  |  1999-11-15  |  1KB  |  51 lines

  1. # Jones 3D Cog Script
  2. #
  3. # gen_SlashWeb.cog
  4. #
  5. # [TRM] [TL]
  6. #
  7. # (C) 1999 LucasArts Entertainment Co. All Rights Reserved
  8. # ========================================================================================
  9. symbols
  10.     
  11. message     startup
  12. message     damaged
  13.  
  14. surface     tap                            mask=0x8
  15. surface        tapback                        mask=0x8
  16.  
  17. sound        rip=gen_tapestry_rip_c.wav    local
  18.  
  19. int         type                        local
  20. int         player                        local
  21.  
  22. end
  23.  
  24. # ========================================================================================
  25. code
  26.  
  27. startup:
  28.  
  29. player = GetLocalPlayerThing();
  30.     
  31. return;
  32.     
  33. # ........................................................................................
  34. damaged:
  35.  
  36. # See if damage is from machete -- RT
  37. if (GetParam(1) == 0x20)
  38. {
  39.     PlaySoundLocal(rip, 1.0, 0, 0x0000, 0);
  40.     SetWallCel(tap, 1);
  41.     SetWallCel(tapback, 1);
  42.     ClearAdjoinFlags(tap, 0x10);
  43.     Setadjoinflags(tapback, 0x2);
  44. }
  45.     
  46. return;
  47.  
  48. # ........................................................................................
  49. end
  50.  
  51.